<extend name="Public/base"/>
<block name="body">


    <div class="page-content tab-content" id="f_list_content">


        <if condition="$info">


            <volist name="info" id="v">
                <dl class="dl-horizontal f_list">
                    <dt>{$key}楼</dt>
                    <dd>
                        <ul class="list-inline  pricing-span-body">

                            <volist name="v" id="vo">


                                <div class="pricing-span " id="room_{$vo.id}" data-width="900px"  data-trigger="modal" data-title="入住人员信息" href="{:U('room',array('room_id'=>$vo['id']))}">

                                    <div class="widget-box pricing-box-small">
                                        <div class="widget-header  text-center
                                           <switch name="vo.status" >
                                        <case value="1">header-color-green</case>
                                        <case value="2">header-color-orange</case>
                                        <case value="0">header-color-red</case>

                                        </switch>
                                        ">
                                            <h5 class="bigger lighter">{$vo.name}[{:str_cut(F("Var_room_type")[$vo["type"]][name],1,"")}]</h5>
                                        </div>

                                        <div class="widget-body">
                                            <div class="widget-main no-padding">
                                                <ul class="list-unstyled list-striped pricing-table users">

                                                    <li>&nbsp</li>
                                                    <li> </li>
                                                </ul>


                                            </div>
                                        </div>
                                    </div>

                                </div>

                            </volist>



                        </ul>
                    </dd>
                </dl>

            </volist>

        </if>



    </div>


</block>


<block name="script">

    <script>



        $.post("{:U('get_room_log',array('building'=>1))}",{RoomNumber:$(this).data("id")},function(data){




            $.each(data, function (lou, v) {


//                alert("#room_"+ v.room_id+"_"+v.name)

                html="<li>"+v.name+"</li>";





                $("#room_"+ v.room_id+" .users li:first").before(html);
                $("#room_"+ v.room_id+" .users li:last").detach();



            })





        });

    </script>



        </block>